/*
Copyright (C) 1996-1997 Id Software, Inc.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 3
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

*/

#include "quakedef.h"
#include "menu.shared.h"


class qmenu_multiplayer_t : public qmenu_t
{
public:
	qmenu_multiplayer_t (void)
	{
		// add our options
		this->AddOption (new qmenu_banner_t ("gfx/p_multi.lmp"));
		this->AddOption (new qmenu_divider_t ());

		this->AddOption (new qmenu_chunkypic_t ("gfx/mp_menu.lmp"));
		this->AddOption (new qmenu_plaque_t ());

		this->AddOption (new qmenu_bigsubmenu_t (m_joingame));
		this->AddOption (new qmenu_bigsubmenu_t (m_startgame));
		this->AddOption (new qmenu_bigsubmenu_t (m_setup));

		// and register our menu
		this->Register (m_multiplayer);
	}

	void EnterFunc (void)
	{
		this->EnterMenu ();
	}

protected:
	void CustomDraw (void)
	{
		if (tcpipAvailable)
			return;

		M_DrawCommand (148, "No Communications Available");
	}
} menu_multiplayer;

